<%@ include file="../common/top.jsp" %>

<div id="Catalog">
    <form action="signOn" method="post">

        <p>Please enter your username and password.</p>

<%--        <c:if test = "${requestScope.signOnMsg != null}">--%>
<%--            <p><font color="red">${requestScope.signOnMsg }</font></p>--%>
<%--        </c:if>--%>

        <!-- 替换为纯JSP代码 -->
        <%
            // 获取请求作用域中的signOnMsg
            Object signOnMsgObj = request.getAttribute("signOnMsg");

            // 检查signOnMsg是否非空
            if (signOnMsgObj != null) {
                String signOnMsg = signOnMsgObj.toString();
        %>
        <p><font color="red"><%= signOnMsg %></font></p>
        <%
            }
        %>



        <table>
        <tr style="height: 35px">
            <td style="vertical-align: middle">Username:</td>
            <td style="vertical-align: middle"><input type="text" name="username"></td>
        </tr>
        <tr style="height: 35px">
            <td style="vertical-align: middle">Password:</td>
            <td style="vertical-align: middle"><input type="password" name="password"></td>
        </tr>
        <tr style="height: 35px">
            <script type="text/javascript">
                function myReload() {
                    document.getElementById("CreateCheckCode").src = document
                        .getElementById("CreateCheckCode").src + "?nocache=" + new Date().getTime();
                }
            </script>
            <td style="vertical-align: middle">Verification code:</td>
            <td style="vertical-align: middle">
                <input name="checkCode" type="text" id="checkCode" title="The verification code is not case sensitive."
                       size="10" maxlength="8"/>
                <a onclick="myReload()"><img src="PictureCheckCode" id="CreateCheckCode" align="middle"></a>
            </td>
        </tr>
        <%--<stripes:password name="password" value="j2ee" />--%>

    </table>
        <input type="submit" name="signon" value="Login">

    </form>
    Need a user name and password?
    <a href="newAccountRegister">Register Now!</a>
</div>
<%@ include file="../common/bottom.jsp" %>
